package org.example.command;

import org.example.editor.Editor;

public class InsertCommand implements Command{
    private Editor editor;
    private Integer lineNumber;
    private String content;
    public InsertCommand(Editor editor,Integer lineNumber,String content){
        this.editor = editor;
        this.lineNumber = lineNumber;
        this.content = content;
    }
    @Override
    public void excute() {
        editor.insert(lineNumber,content);
    }
}
